package com.maochd.cloud.excel.controller;


import com.maochd.cloud.common.core.domain.R;
import com.maochd.cloud.excel.condition.ExportQueryCondition;
import com.maochd.cloud.excel.service.ExportRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/export/record")
@Api(value = "导出记录Controller", tags = "导出记录Controller")
public class ExportRecordController {

    @Resource
    private ExportRecordService exportRecordService;

    @PostMapping("/list")
    @ApiOperation("根据条件查询导出列表")
    public R<?> listByCondition(@RequestBody ExportQueryCondition condition) {
        return R.ok(exportRecordService.listByCondition(condition));
    }

}

